<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Exception;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
	    return success(['msg'=>'成功','code'=>1]);
    }


    public function test(){

    	$post = $this->request->post();

    	return success($post);


    }

}
